An Ode to Arrows

نویسندگان

  • Hai Liu
  • Paul Hudak
چکیده

We study a number of embedded DSLs for autonomous ordinary differential equations (autonomous ODEs) in Haskell. A naive implementation based on the lazy tower of derivatives is straightforward but has serious time and space leaks due to the loss of sharing when handling cyclic and infinite data structures. In seeking a solution to fix this problem, we explore a number of DSLs ranging from shallow to deep embeddings, and middle-grounds in between. We advocate a solution based on arrows, an abstract notion of computation that offers both a succinct representation and an effective implementation. Arrows are ubiquitous in their combinator style that happens to capture both sharing and recursion elegantly. We further relate our arrow-based DSL to a more constrained form of arrows called causal commutative arrows, the normalization of which leads to a staged compilation technique improving ODE performance by orders of magnitude.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Supporting Information 2: Stochastic simulations

In this study we have predominantly used a set of ordinary differential equations (ode) to describe the behavior of transposons and host control. However, it is well known that for small numbers of molecules intrinsic noise may play an important role in the dynamics. In order to verify our results with respect to small numbers of transposons, vlp levels and other molecules we also design and st...

متن کامل

THE USE OF A RUNGE-KUTTA SCHEME FOR AN ODE-PDE MODEL OF SUPPLY CHAINS

Integrating various suppliers to satisfy market demand is of great importance for e ective supply chain management. In this paper, we consider the ODE-PDE model of supply chain and apply a classical explicit fourth-order Runge-Kutta scheme for the related ODE model of suppliers. Also, the convergence of the proposed method is proved. Finally a numerical example is studied to demonstrate the acc...

متن کامل

Spectrum of the Elimination of Loops and Multiple Arrows in Coupled Cell Networks

A uniform lift of a given network is a network with no loops and no multiple arrows that admits the first network as quotient. Given a regular network (in which all cells have the same type and receive the same number of inputs and all arrows have the same type) with loops or multiple arrows, we prove that it is always possible to construct a uniform lift whose adjacency matrix has only two pos...

متن کامل

SOME BOUNDARY VALUE PROBLEMS FOR A NON-LINEAR THIRD ORDER O.D.E.

Existence of periodic solutions for non-linear third order autonomous differential equation (O.D.E.) has not been investigated to as large an extent as non-linear second order. The popular Poincare-Bendixon theorem applicable to second order equation is not valid for third order equation (see [3]). This conclusion opens a way for further investigation.

متن کامل

The dilemma of Rationality or Providing Efficiency in Monetary Policy Making: An Application of Arrow’s

Financial frictions inducted in the model is a new contribution to monetary economics. Herein, an analytical tool arranges monetary policymaking in the form of two steps procedure. In the first step, an appropriate amount of money supply should be assessed; and in the second step, that appropriate amount should be allocated to several sectors. The Central Bank obligates the step of assessment a...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2010